package me.liuyu.ymall.member.oauth.DO;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 会员等级
 * </p>
 *
 * @author liuyu
 * @since 2018-06-07
 */
@TableName("member_level")
public class MemberLevel extends Model<MemberLevel> {

    private static final long serialVersionUID = 1L;

    @TableId("member_level_id")
	private Long memberLevelId;
	@TableField("member_level_name")
	private String memberLevelName;
	@TableField("min_point")
	private Integer minPoint;
	@TableField("max_point")
	private Integer maxPoint;
	@TableField("create_time")
	private Date createTime;


	public Long getMemberLevelId() {
		return memberLevelId;
	}

	public void setMemberLevelId(Long memberLevelId) {
		this.memberLevelId = memberLevelId;
	}

	public String getMemberLevelName() {
		return memberLevelName;
	}

	public void setMemberLevelName(String memberLevelName) {
		this.memberLevelName = memberLevelName;
	}

	public Integer getMinPoint() {
		return minPoint;
	}

	public void setMinPoint(Integer minPoint) {
		this.minPoint = minPoint;
	}

	public Integer getMaxPoint() {
		return maxPoint;
	}

	public void setMaxPoint(Integer maxPoint) {
		this.maxPoint = maxPoint;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Override
	protected Serializable pkVal() {
		return this.memberLevelId;
	}

	@Override
	public String toString() {
		return "MemberLevel{" +
			"memberLevelId=" + memberLevelId +
			", memberLevelName=" + memberLevelName +
			", minPoint=" + minPoint +
			", maxPoint=" + maxPoint +
			", createTime=" + createTime +
			"}";
	}
}
